package com.ryzx.log.collector;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/*
微服务Fegin调用设置请求链路ID
 */
public class FeginRemoteInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header(LogComponentConstant.TRACE_ID, RequestLogContext.getTraceId());
    }
}
